home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / netmail / wsomr120.zip / WS.DAT / WPOST < prev    next >
Text File  |  1996-04-24  |  439b  |  32 lines

  1. #!/bin/sh
  2. #Syntax:
  3. # wpost in_file out_file
  4. # Example:
  5. #   upload first internet.txt from PC to Host
  6. #   sh wpost internet.001 internet.txt
  7.  
  8. INF=$1
  9. OUTF=$2
  10.  
  11. wsmail m+ $INF
  12.  
  13. # Check for an existing packet
  14. if [ -f $INF ]
  15. then
  16.   echo new mail found!
  17.   sz -w 1024 $INF
  18.   if [ $? = 0 ]
  19.   then
  20.     rm $INF
  21.   fi
  22. fi
  23.  
  24. # Check for an existing replies
  25. if [ -f $OUTF ]
  26. then
  27.   echo sending replies, please wait...
  28.   wsmail r- $OUTF
  29. fi
  30. echo wpost done
  31.  
  32.